package com.teamall.web.tssy.db.dao.mapper;

import com.teamall.web.tssy.db.arg.TsSyKeyValueArg;
import com.teamall.web.tssy.db.po.TsSyKeyValuePO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ITsSyKeyValueMapper {
    
    List<Integer> countByArg(TsSyKeyValueArg arg);

    List<TsSyKeyValuePO> selectByArg(TsSyKeyValueArg arg);

    TsSyKeyValuePO selectByPrimaryKey(String id);

    List<TsSyKeyValuePO> selectByArgAndPage(TsSyKeyValueArg arg, RowBounds rowBound);

    int insert(TsSyKeyValuePO record);

    int insertSelective(TsSyKeyValuePO record);

    int insertBatch(@Param("list") List<TsSyKeyValuePO> records);

    int updateByArgSelective(@Param("record") TsSyKeyValuePO record,
            @Param("arg") TsSyKeyValueArg arg);

    int updateByArg(@Param("record") TsSyKeyValuePO record,
            @Param("arg") TsSyKeyValueArg arg);

    int updateByPrimaryKeySelective(TsSyKeyValuePO record);

    int updateByPrimaryKeys(TsSyKeyValuePO record);
    
    int updateByPrimaryKey(TsSyKeyValuePO record);
    
    int deleteByArg(TsSyKeyValueArg arg);
    
    int deleteByPrimaryKey(String id);
    
}